package ru.poomsae.isap.Offline

import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.View
import android.widget.ImageButton
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import ru.poomsae.isap.Offline.Hapkido.HapkiVibor
import ru.poomsae.isap.R

class TkdHapkiOffline : AppCompatActivity() {

    @RequiresApi(Build.VERSION_CODES.JELLY_BEAN)
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val decorView = window.decorView
        val uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN
        decorView.systemUiVisibility = uiOptions
        getSupportActionBar()?.hide()
        setContentView(R.layout.tkd_hapki)

        val tkd = findViewById(R.id.tkd) as ImageButton
        val hapki = findViewById(R.id.hapki) as ImageButton

        tkd.setOnClickListener {
            val intent = Intent(this, MenuActivity::class.java)
            startActivity(intent)
        }

        hapki.setOnClickListener {
            val intent = Intent(this, HapkiVibor::class.java)
            startActivity(intent)
        }
    }
}